export const options = [
	{
		label: "待服务",
		value: 1,
		color: "#F69F12",
		bgColor: "#FFF6E8"
	},
	{
		label: "服务中",
		value: 2,
		color: "#0EC880",
		bgColor: "#E7FAF3"
	},
	{
		label: "已完成",
		value: 3,
		color: "#486CF6",
		bgColor: "#EDF1FF"
	},
	{
		label: "已取消",
		value: 4,
		color: "#999999",
		bgColor: "#F1F1F1"
	}
];

// 获取状态
export function getStatus(val: number | string = 1): { label: string; value: number; color: string; bgColor: string } {
	return options.find((v) => v.value == val);
}
